<?php
/**
 * Created by PhpStorm.
 * User: sunt
 * Date: 2018/4/10 0010
 * Time: 14:10
 */

namespace app\admin\model;

use \think\Model;
class Hospital extends Model
{
    public function cate()
    {
        //关联分类表
        return $this->belongsTo('HospitalCate');
    }

    public function admin()
    {
        //关联角色表
        return $this->belongsTo('Admin');
    }
}